package com.flitsneak.designpatterns.structuralpatterns.proxy.dynamicproxy;

import com.flitsneak.designpatterns.structuralpatterns.proxy.dynamicproxy.proxy.DynamicFeiFeiProxy;
import com.flitsneak.designpatterns.structuralpatterns.proxy.staticproxy.subject.Fruits;
import com.flitsneak.designpatterns.structuralpatterns.proxy.staticproxy.subject.MissDuan;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/7/6 14:53
 * @description
 */
public class FeiFei {
    public static void main(String[] args) {
        DynamicFeiFeiProxy dynamicFeiFeiProxy = new DynamicFeiFeiProxy();
        Fruits fruits = dynamicFeiFeiProxy.getFruits(new MissDuan());
        fruits.buyFruits();
    }
}
